#include <iostream>
#include "Agora.h"

int main(int ac, char **av)
{
	/*Buffer *buf = new Buffer(50001);
	IAudioIn *manager = new IAudioIn(buf);
	IAudioOut *out = new IAudioOut(buf);

/*	char **arr = manager->DetectDevice();
	for (int i = 0; arr && arr[i] != NULL; i++)
	{
		 std::cout << arr[i] << std::endl;
	}*/
	//Client client;
	//client->Connect("127.0.0.1", 18000);
   // client->Send("hey\n", 4); 
	//	manager->Start();
//	out->Start();

	Agora ago;

	ago.SetDefault();
//	if (ago.Connect("192.168.1.107", 8152) >= 0)
		ago.Start();
	

	while(42)
	{
		Sleep(400);
	}
	system("pause");
}